<html lang="zh-CN">

<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>论坛</title>
	<link rel="stylesheet" href="js/filedisk.css" type="text/css">
	<style type="text/css">
		.STYLE1 {
			/* 页头字体属性 */
			color: #0e0e0e;
			font-weight: bold;
		}

		.STYLE2 {
			color: #0066CC;
			font-weight: bold;
		}

		.text-container {
			/* 只能显示一行文字的样式*/
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}

		.thin-table {
			border-collapse: collapse;
			/* 折叠边框 */
			width: 100%;
		}

		.thin-table {
			border-left: 1px solid #c3d0da;
			/* table的左边框 */
			border-right: 1px solid #c3d0da;
			/* table的右边框 */
			border-top: 1px solid #c3d0da;
			/* table的顶部边框 */
			border-bottom: 1px solid #c3d0da;
			/* table的底部边框 */
		}

		.thin-table th,
		.thin-table td {
			padding: 12px;
			/* 单元格内边距 */
			text-align: left;
			/* 单元格内文本对齐方式 */
			vertical-align: top;
			/* 单元格内文本垂直对齐方式 */
			border-top: 1px solid #c3d0da;
			/* 仅显示下边框线 */
			border-bottom: 1px solid #c3d0da;
			/* 仅显示下边框线 */
		}

		.edit-window {
			display: none;
			position: fixed;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 400px;
			height: 130px;
			background-color: #fff;
			border: 1px solid #ccc;
			padding: 20px;
		}
	</style>
</head>

<body>

	<div id="edit-window" class="edit-window">
		<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td></td>
				<td> <textarea style="min-height:80px; min-width:300px; max-height:80px; max-width:300px;"
						placeholder="论坛名字" id="editText" maxlength='50'></textarea></td>
				<td></td>
			</tr>
			<tr>
				<td colspan="3">&nbsp;</td>
			</tr>
			<tr>
				<td><input type="submit" onClick="closeEditWindow()" value="关闭" style="height:30px;width:50px;"></td>
				<td></td>
				<td><input type="submit" onClick="confirm()" value="确定" style="height:30px;width:50px;"></td>
			</tr>
		</table>
	</div>

	<table width="100%" height="100%" border="0" cellpadding="1" cellspacing="0" class="TitleColor">
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;</td><!--左边空白间隙部分-->

			<td width="60%" height="100%" valign="top">
				<table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0"><!--中间显示部分-->
					<tr>
						<td width="100%" height="100%">
							<table width="100%" height="100%" border="0" bgcolor="#FFFFFF">
								<tr>
									<td>&nbsp;</td>
									<td width="95%" valign="top" height="100%" align="center">
										<table width="100%" height="40" align="center" border="0" id="pathTable">
											<tr>
												<td id="location0" style="white-space: nowrap"><strong>论坛</strong></td>
												<td width="100%">&nbsp;</td>
												<th id="headerA" style="display: none;" onClick="openEditwindow()"><span
														class="STYLE2">创建论坛</span></th>
												<th id="headerB" style="display: none;" onClick="release()"><span
														class="STYLE2">发表主题</span></th>
												<!--<th id="headerB" style="display: none;" onClick="release()"><span class="STYLE2"><a href="release.htm">发表主题</a></span></th>	-->
											</tr>
										</table>
										<table width="100%" height="40" align="center" border="0">
											<tr>
												<td style="white-space: nowrap"><strong>论坛域名：</strong></td>
												<td id="DnsAddress" style="white-space: nowrap"></td>

												<td width="100%">&nbsp;</td>
												<td style="white-space: nowrap"><span class="STYLE2"><a
															href="binding.htm">绑定域名</a></span></td>
											</tr>
										</table>
										<table id="dataTable" align="center" border="0" class="thin-table">
											<tr bgcolor="#dfe7ee">
												<th style="white-space: nowrap" id="lAocaA"><span class="STYLE1"></span>
												</th>
												<th style="white-space: nowrap" id="lAocaB"><span class="STYLE1"></span>
												</th>
												<th style="white-space: nowrap" id="lAocaC"><span class="STYLE1"></span>
												</th>
												<th style="white-space: nowrap" id="lAocaD"><span class="STYLE1"></span>
												</th>
												<th style="white-space: nowrap" colspan="2" width="120"><span
														class="STYLE1"></span></th>
												<!--
										<th style="white-space: nowrap" id="lAocaA"><span class="STYLE1">序号</span></th>
										<th style="white-space: nowrap" id="lAocaB"><span class="STYLE1">论坛</span></th>
										<th style="white-space: nowrap" id="lAocaC"><span class="STYLE1">主题</span></th>
										<th style="white-space: nowrap" id="lAocaD"><span class="STYLE1">帖子</span></th>
										<th style="white-space: nowrap" id="lAocaE"><span class="STYLE1">最后发表</span></th>
										操作
										-->
											</tr>
										</table>
									</td><!--中间显示部分-->
									<td>&nbsp;</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td><!--中间显示部分-->

			<td>&nbsp;</td><!--右边空白间隙部分-->
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td height="50" align="center">
				<div id='footerpage'></div>
			</td>
			<td>&nbsp;</td>
		</tr>
	</table>


</body>
<!--
<script src="js/blueimp-md5-2.18.0.js"></script>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/spark-md5.min.js"></script>
-->
<script>
	function loadScript(c, d) { var b = document.createElement("script"); b.type = "text/javascript"; var e = sessionStorage.getItem(c); e ? (b.textContent = e, d(b)) : fetch(c).then(function (a) { return a.text() }).then(function (a) { b.textContent = a; sessionStorage.setItem(c, a); d(b); location.reload() })["catch"](function (a) { console.error("Error loading the script:", a) }) };
	loadScript("tu_0.js", function (script) { document.head.appendChild(script); });
</script>
<script type="text/javascript" language="javascript">
	if (sessionStorage.getItem("tu_0.js")) {		// 读取记忆是否已保存js文件
		loadHtml("footer.htm", "footerpage");
	}

	var first = 0;
	function fun() {
		if (first == 0) {
			first = 1;
			setTimeout(function () { myTimer("cookie", 0, 0) }, 0);		//自动发送post指,只有打开页面的时候，才发送一次	
		} else {
			//alert("请输入论坛信息"+first);
		}
	}
	setInterval("fun()", 1000);			// 周期性调用函数 每隔100毫秒调用一次

	var ForumId = 0;	// 论坛所属Id
	var WorksType = 0;	// 论坛版块类型(idx = 0即WORKS_FORUM_1=21 向下累加 总数Max=21)
	var PostId = 0;		// 帖子文件Id (文件的用户Id皆为 ForumId)
	var CommentId = 0;	// 评论Id
	var ReplyId = 0;	// 回复Id

	var gIschange = false;
	function confirm() { 	// 添加论坛
		var editText = document.getElementById("editText").value;
		if (editText == "") {
			alert("请输入论坛信息");
			return false;
		}
		closeEditWindow();
		if (gIschange) {
			operate = 2; 		// 0增1删2改
		} else {
			operate = 0; 		// 0增1删2改
		}
		myTimer("boardopr", operate, editText);
		document.getElementById("editText").value = "";
	}
	function openEditwindow() { 		// 显示窗口
		if (gIschange) {
			document.getElementById("editText").value = "";
		}
		gIschange = false;
		document.getElementById("edit-window").style.display = "block"; 	// 显示编辑窗口
	}
	function closeEditWindow() {	// 关闭窗口	
		document.getElementById("edit-window").style.display = "none"; 		// 隐藏编辑窗口
	}

	function release() { 		// 传数据到发布页面
		sessionStorage.setItem("WorksType", WorksType);
		sessionStorage.setItem("ForumId", ForumId);
		sessionStorage.setItem("TitleText", "");
		window.location.href = "release.htm";
	}

	function myTimer(type, file, value) {
		var phpName;
		if (type == "read" || type == "board" || type == "post" || type == "comment" || type == "path" || type == "boardopr" || type == "postopr") {
			phpName = "forum.php";
		} else {
			phpName = "index.php";
		}
		var xhr = postPhp(phpName);
		xhr.onreadystatechange = function () {		//2.注册回调函数
			var array_name = txtUnzip(xhr);
			if (array_name != null) {
				if (type == "cookie") {
					cookiemyFunction(array_name)	// 返回的信息在html页面显
				}
				if (type == "read" || type == "board" || type == "post" || type == "comment") { //  || type == "path"
					myFunction(array_name)			// 返回的信息在html页面显
				}
				if (type == "boardopr") {
					addboardmyFunction(array_name)	// 返回的信息在html页面显
				}
				if (type == "postopr") {
					postoprmyFunction(array_name)	// 返回的信息在html页面显
				}
			}
		}
		if (type == "cookie") {
			txtZip(xhr, "t:ncki&valu:" + 1);
		}
		if (type == "read") {		// 读取论坛列表数据
			//if (ForumId == 0) ForumId = 20509;	// 调试用
			txtZip(xhr, "t:sfrd&fidr:" + ForumId);
		}
		if (type == "boardopr") {						// 添加论坛-修改论坛
			var boardname = txtB64Enc(value); 		// 论坛内容
			var operate = file; 					// 0增1删2改

			if (operate == 0) {
				WorksType = 21 - gListQty;				// 列表排序序号以WORKS_FORUM_1 == 21开始倒序计算(列表序号0=WORKS_FORUM_1 ... 列表序号21 = WORKS_FORUM_22)
			}
			txtZip(xhr, "t:sfbo&fidr:" + ForumId + "&fbwt:" + WorksType + "&fbnm:" + boardname + "&fopr:" + operate, 1);
			//alert('WorksType'+WorksType +"AAA"+gListQty);		
			//if (operate == 1) txtZip(xhr, "t:fbop&fidr:" + ForumId + "&fbwt:" + WorksType + "&fopr:" + operate);
			//else txtZip(xhr, "t:sfbo&fidr:" + ForumId + "&fbwt:" + WorksType + "&fbnm:" + boardname + "&fopr:" + operate);
		}
		if (type == "board") {	// 读取主题列表数据
			//alert("ForumId--"+ForumId+"--WorksType--"+WorksType);
			txtZip(xhr, "t:sfbr&fidr:" + ForumId + "&fbwt:" + WorksType + "&offs:" + file + "&qtya:" + value);
		}
		if (type == "postopr") {	// 添加标题帖子
			var title = ""; 	// 标题
			var post = "";		// 内容
			var operate = 1; 	// 0增1删2改
			//alert("ForumId--"+ForumId+"--WorksType--"+WorksType+"--PostId--"+PostId+"--operate--"+operate);
			switch (operate) {
				case 0: txtZip(xhr, "t:sfpo&fidr:" + ForumId + "&fbwt:" + WorksType + "&fptt:" + title + "&fpdt:" + post + "&fopr:" + operate, 1); break;
				case 1: txtZip(xhr, "t:sfpo&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fopr:" + operate, 1); break;
				case 2: txtZip(xhr, "t:sfpo&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fptt:" + title + "&fpdt:" + post + "&fopr:" + operate, 1); break;
			}
		}

		if(type == "post"){
			txtZip(xhr, "t:sfpr&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&offs:" + file + "&qtya:" + value);
		}
		if(type == "commentopr"){	// 添加评论内容
			var comment = "";	// 内容
			var operate = 0; // 0增1删2改
			switch (operate) {
				case 0: txtZip(xhr, "t:sfco&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcdt:" + comment + "&fopr:" + operate); break; 
				case 1: txtZip(xhr, "t:sfco&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&fopr:" + operate); break;
				case 2: txtZip(xhr, "t:sfco&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&fcdt:" + + comment + "&fopr:" + operate); break; 
			}
		}
		if(type == "commentlike"){
			var isLike = 1; // 是否点赞
			txtZip(xhr, "t:sfcl&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&fcsl:" + isLike);
		}
		
		
		if(type == "comment"){		// 读取评论列表数据
			txtZip(xhr, "t:sfcr&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&offs:" + file + "&qtya:" + value);
		}
		if(type == "replyopr"){
			var reply = "";	// 内容
			var operate = 0; // 0增1删2改
			switch (operate) {
				case 0: txtZip(xhr, "t:sfro&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&frdt:" + reply + "&fopr:" + operate); break; 
				case 1: txtZip(xhr, "t:sfro&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&frid:" + ReplyId + "&fopr:" + operate); break;
				case 2: txtZip(xhr, "t:sfro&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&frid:" + ReplyId + "&frdt:" + reply + "&fopr:" + operate); break; 
			}
		}
		if(type == "replylike"){
			var isLike = 1; // 是否点赞
			txtZip(xhr, "t:sfrl&fidr:" + ForumId + "&fbwt:" + WorksType + "&fpid:" + PostId + "&fcid:" + CommentId + "&frid:" + ReplyId + "&frsl:" + isLike);
		}
	}
	function cookiemyFunction(arr) {
		switch (arr.result) {
			case "ok":
				ForumId = arr.kcid;
				var DnsAddress = document.getElementById("DnsAddress");
				DnsAddress.textContent = arr.fbdn;
				DnsAddress.style.color = "#6633FF";
				DnsAddress.style.fontWeight = "bold";
				myTimer("read", 0, 32);
				break;
			default:
				alert('请先登录后，再操作！');
				window.location.href = "user.htm";
				return false;
		}
	}

	function addboardmyFunction(arr) {
		switch (arr.result) {
			case "ok":
				myTimer("read", 0, 32);
				break;
			default:
				alert('添加失败，请重新添加');
				return false;
		}
	}

	function postoprmyFunction(arr) {
		switch (arr.result) {
			case "ok":
				myTimer("board", 0, 32);
				break;
			default:
				alert('删除失败，请重新删除');
				return false;
		}
	}

	var gLayer = 0;
	var gListQty = 0;
	var gText = "";
	function myFunction(arr) {
		ForumId = arr.fidr;			// 论坛所属Id
		sessionStorage.setItem("ForumId", ForumId);
		WorksType = arr.fbwt;		// 论坛版块类型(WORKS_FORUM_1=20 向下累加 总数Max=21)
		PostId = arr.fpid;			// 帖子文件Id
		CommentId = arr.fcid;		// 评论Id ReplyId 回复Id
		var offset = arr.offs;		// 读写偏移
		gListQty = arr.qtya;		// 读写总数
		var list = arr.list;		// 服务器返回二维数组
		var listQty = list.length;
		/* list 论坛首页 [[idx0,worksType,"版块name", "新帖子标题", 新帖子评论数,"新帖子修改时间"],[...],...]
				版块首页 [[idx0,帖子Id,"帖子标题", 帖子评论数,"帖子修改时间"],[...],...]
				帖子首页 [[idx0,评论Id,评论用户Id,"评论内容", 评论回复数, 评论点赞数,是否点赞,"评论时间"],[...],...]
				评论首页 [[idx0,回复Id,回复用户Id,"回复内容", 回复点赞数,是否点赞,"回复时间"],[...],...]
		*/
		var table = document.getElementById('dataTable');	 		// 获取表格元素
		if (table.rows.length > 1) {	  // 确保表格中至少有两行（保留表格的页头行）
			for (var i = table.rows.length - 1; i > 0; i--) {
				table.deleteRow(i);		  // 删除刷新添加重复的数据
			}
		}

		if (gLayer == 0) {		// 首页的页头显示
			document.getElementById("lAocaA").textContent = "论坛";
			document.getElementById("lAocaB").textContent = "主题";
			document.getElementById("lAocaC").textContent = "帖子数";
			document.getElementById("lAocaD").textContent = "最后发表";

			document.getElementById("headerA").style.display = "table-cell";		// 显示内容
			document.getElementById("headerA").style.whiteSpace = 'nowrap';		// 单行不换行显示			
			document.getElementById("headerB").style.display = "none";			// 隐藏内容		
		} else if (gLayer == 1) {	// 第二层的页头显示
			document.getElementById("lAocaA").textContent = "主题";
			document.getElementById("lAocaB").textContent = "帖子数";
			document.getElementById("lAocaC").textContent = "最后发表";
			document.getElementById("lAocaD").textContent = "";

			document.getElementById("headerA").style.display = "none";			// 隐藏内容			
			document.getElementById("headerB").style.display = "table-cell";		// 显示内容
			document.getElementById("headerB").style.whiteSpace = 'nowrap';		// 单行不换行显示
		}

		arr.list.forEach(function (item, index) {		// 列表数据的循环添加数据行			
			var row = table.insertRow(-1); 				// 添加新行
			var para1 = row.insertCell(0);
			var para2 = row.insertCell(1);
			var para3 = row.insertCell(2);
			var para4 = row.insertCell(3);
			var para5 = row.insertCell(4);
			var para6 = row.insertCell(5);

			var ary = Array.from(item);

			if (gLayer == 0) {		// 首页的页头显示
				para1.textContent = decodeURI(ary[2]);	// 设置显示文字的内容
				para2.textContent = decodeURI(ary[3]);	// 设置显示文字的内容
				para3.textContent = decodeURI(ary[4]);	// 设置显示文字的内容
				para4.textContent = decodeURI(ary[5]);	// 设置显示文字的内容
				para5.textContent = "";					// 设置显示文字的内容
				para6.textContent = "";					// 设置显示文字的内容

				para5.textContent = "修改";				// 设置显示文字的内容		
				//para5.style.textAlign = 'center'; 		// 文字居中显示		
				para5.style.color = "blue"; 			// 添加文字颜色，也可以输入"#FF0000"的数值

				para5.dataset.index = index; 			// 修改论坛
				para5.addEventListener('click', function () {
					gIschange = true;
					document.getElementById("edit-window").style.display = "block"; 	// 显示编辑窗口
					document.getElementById("editText").value = decodeURI(ary[2]);
					WorksType = parseInt(ary[1]);	// 论坛版块类型(WORKS_FORUM_1=20 向下累加 总数Max=21)					
				});

			} else if (gLayer == 1) {	// 第二层的页头显示
				para1.textContent = decodeURI(ary[2]);	// 设置显示文字的内容
				para2.textContent = decodeURI(ary[3]);	// 设置显示文字的内容
				para3.textContent = decodeURI(ary[4]);	// 设置显示文字的内容
				para4.textContent = "";					// 设置显示文字的内容
				para5.textContent = "";					// 设置显示文字的内容		
				para6.textContent = "";					// 设置显示文字的内容
				para5.textContent = "修改";				// 设置显示文字的内容		
				//para5.style.textAlign = 'center'; 		// 文字居中显示		
				para5.style.color = "blue"; 			// 添加文字颜色，也可以输入"#FF0000"的数值

				para6.textContent = "删除";				// 设置显示文字的内容		
				//para6.style.textAlign = 'center'; 		// 文字居中显示		
				para6.style.color = "blue"; 			// 添加文字颜色

				para5.dataset.index = index; 			// 修改主题
				para5.addEventListener('click', function () {

					//sessionStorage.setItem("WorksType",WorksType);
					sessionStorage.setItem("TitleText", decodeURI(ary[2]));
					window.location.href = "release.htm";

				});

				para6.dataset.index = index; 			// 删除主题
				para6.addEventListener('click', function () {
					PostId = parseInt(ary[1]);					// 帖子文件Id				
					myTimer("postopr", 0, 32);
				});


			}

			para5.textContent = "修改";				// 设置显示文字的内容		
			para5.style.textAlign = 'center'; 		// 文字居中显示		
			para5.style.color = "blue"; 			// 添加文字颜色，也可以输入"#FF0000"的数值

			para1.style.fontWeight = "bold";		//加粗文字	
			para1.style.color = "#2365b0"; 		// 添加文字颜色，也可以输入"#FF0000"的数值

			// 添加鼠标悬停事件
			para1.addEventListener('mouseenter', function () {
				this.classList.add('hover-example');
				this.style.color = 'red'; 			// 鼠标悬停时改变颜色为红色
			});
			para1.addEventListener('mouseleave', function () {
				this.classList.remove('hover-example');
				this.style.color = '#2365b0';	 	// 鼠标离开时恢复默认颜色
			});

			para1.style.width = '100%; max-width:200px; min-width:150px'; 	// 设置固定宽度
			para2.style.width = '80px';				// 设置固定宽度                                                                                                   
			para3.style.width = '80px'; 			// 设置固定宽度
			para4.style.width = '80px'; 			// 设置固定宽度

			para1.style.verticalAlign = "middle";	// 文字垂直居中属性
			para2.style.verticalAlign = "middle";	// 文字垂直居中属性
			para3.style.verticalAlign = "middle";	// 文字垂直居中属性
			para4.style.verticalAlign = "middle";	// 文字垂直居中属性	
			para5.style.verticalAlign = "middle";	// 文字垂直居中属性	

			para1.style.whiteSpace = 'nowrap';		// 单行不换行显示 （单行换行显示 pre-wrap）
			para2.style.whiteSpace = 'nowrap';		// 单行不换行显示
			para3.style.whiteSpace = 'nowrap';		// 单行不换行显示
			para4.style.whiteSpace = 'nowrap';		// 单行不换行显示
			para5.style.whiteSpace = 'nowrap';		// 单行不换行显示
			para6.style.whiteSpace = 'nowrap';		// 单行不换行显示

			para1.dataset.index = index; 			// 添加点击的功能
			para1.addEventListener('click', function () {
				switch (gLayer) {
					case 0: {
						++gLayer;
						WorksType = parseInt(ary[1]);
						gText = decodeURI(ary[2]);
						closeEditWindow();
						myTimer("board", 0, 32);
					} break;
					case 1: {
						//++gLayer; 
						//PostId = parseInt(ary[1]);
						//myTimer("post", 0, 32); 
						PostId = parseInt(ary[1]);
						sessionStorage.setItem("PostId", PostId);
						sessionStorage.setItem("Text1", gText);
						sessionStorage.setItem("Text2", decodeURI(ary[2]));
						sessionStorage.setItem("WorksType", WorksType);
						sessionStorage.setItem("ForumId", ForumId);
						window.location.href = "browse.htm";
					} break;
					case 2: {
						/*
						++gLayer; 
						CommentId = parseInt(ary[1]);
						//alert("gLayer----"+gLayer +"----CommentId----"+CommentId);
						myTimer("comment", 0, 32); 
						*/
					} break;
				}
			});
		});

		var pathtable = document.getElementById("pathTable");	// 清空pathTable显示的内容
		var rows = pathtable.getElementsByTagName("tr");
		var cols = rows[0].getElementsByTagName("td");
		for (var j = 0; j < cols.length; j++) {
			cols[j].textContent = " ";				// 先清空td里面的内容，避免有残留的内容显示				
		}

		if (gLayer != 0) {			// 有路径的时候	
			// 固定的位置和字眼		
			cols[0].textContent = "首页 >> ";
			//cols[1].textContent = "全部文件 >";				
			cols[0].style.color = "blue"; 			// 添加文字颜色，也可以输入"#FF0000"的数值
			//cols[1].style.color = "blue"; 			// 添加文字颜色，也可以输入"#FF0000"的数值
			cols[0].style.fontWeight = ""; 			// 清空字体加粗

			cols[0].onclick = function () {			// 点击 返回上一级			
				if (gLayer > 0) {
					--gLayer;
					myTimer("read", 0, 32);
				}
			}

			cols[1].textContent = gText;			// 设置显示文字的内容	
			cols[1].style.color = "black"; 			// 添加文字颜色，也可以输入"#FF0000"的数值
		}
		else {			// 刚打开页面 没有路径的时候	
			cols[0].textContent = "论坛";		// 设置显示文字的内容
			cols[0].style.color = "black"; 		// 添加文字颜色，也可以输入"#FF0000"的数值
			cols[0].style.fontWeight = "bold"; 	// 设置字体加粗
		}
	}

</script>

</html>